package functions;

/**
 * Class for function f(x) = 1/(x^2)
 * @author Patrick Bauer
 */
public class onedivX2 extends AbstractPanel {
    public onedivX2(int colorScheme) {
        super(colorScheme);
        this.setToolTipText("f(x) = 1/(x^2) von x = -10.0 bis x = 10.0");
    }

    @Override
    public double getY(double x) {
        return 1/Math.pow(x, 2);
    }    
   
}
